<template>
  <h1>容器组件</h1>
  <div class="common-layout">
    <el-container>
      <el-header style="background-color: #0aa1ed;color:#fff;
                  font-size: 30px;font-weight: bold;line-height: 60px;">
        智慧车辆管理系统-IVOS
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu>
            <el-menu-item index="1">车辆管理</el-menu-item>
            <el-menu-item index="2">用户管理</el-menu-item>
            <el-menu-item index="3">围栏管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <el-table :data="arr">
            <el-table-column type="index" label="序号" width="80" align="center"></el-table-column>
            <el-table-column prop="brand" label="品牌" align="center"></el-table-column>
            <el-table-column prop="model" label="型号" align="center"></el-table-column>
            <el-table-column prop="license" label="车牌" align="center"></el-table-column>
            <el-table-column prop="color" label="颜色" align="center"></el-table-column>
            <el-table-column prop="km" label="公里数" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
//定义数组用来保存表格数据
import {ref} from "vue";

const arr=ref([
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
  {brand:"奥迪",model:"A6",license:"A1111",color:"黑色",km:"100000"},
])
</script>


<style scoped>

</style>